	#		FIB.S 16 NOV 2009

	#		getFibonacci
	addiu	$sp, $sp, -40	#40 set up stack
	sw		$ra, $sp, 32	#44 save ra on stack
	sw		$fp, $sp, 28	#48 save fp on stack
	sw		$s0, $sp, 24	#4c save s0 on stack
	move	$fp, $sp		#50 move sp value into fp
	sw		$a0, $fp, 40	#54
	lw		$v0, $fp, 40	#58
	nop						#5c
	bne		$v0, $0, 4		#60 goto L2
	nop						#64
	sw		$0, $fp, 16		#68
	j		0xA00000D0		#6c
	nop						#70
	
	#		L2
	lw		$v1, $fp, 40	#74 
	li		$v0, 1			#78
	bne		$v1, $v0, 5		#7c goto $L5
	nop						#80
	li		$v0, 1			#84
	sw		$v0, $fp, 16	#88
	j		0xA00000D0		#8c jump $L4
	nop						#90
	
	#		L5
	lw		$v0, $fp 40		#94 
	nop						#98 
	addiu	$v0, $v0, -1	#9c
	move	$a0, $v0		#a0
	jal		0xA0000040		#a4 jump and link getFibonacci 
	nop						#a8
	move	$s0, $v0		#ac
	lw		$v0, $fp, 40	#b0
	nop						#b4
	addiu	$v0, $v0, -2	#b8
	move	$a0, $v0		#bc
	jal		0xA0000040		#c0 jump and link getFibonacci
	nop 					#c4
	addu	$s0, $s0, $v0	#c8
	sw		$s0, $fp, 16 	#cc
	
	#		L4
	lw		$v0, $fp, 16 	#d0 
	move	$sp, $fp 		#d4
	lw		$ra, $sp, 32 	#d8
	lw		$fp, $sp, 28 	#dc
	lw		$s0, $sp, 24 	#e0
	addiu	$sp, $sp, 40 	#e4
	jr		$ra 			#e8
	nop						#ec
	
	#C:\Documents and Settings\Jason\workspace\decaf64\target\classes>java util/Assembler c:\fib.s 16